﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using DAO;
using DTO;
namespace testLostUpdate1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btn1_Click(object sender, EventArgs e)
        {
            DAO.LichDiDAO ldDAO = new LichDiDAO();
            try
            {
                ldDAO.tangHangHoa(txt_maKH.Text, txt_maChuyen.Text, txt_ngayDi.Text, int.Parse(txt_khoiLuong.Text));
                // MessageBox.Show("Successfully !!");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

        }
    }
}
